# -*- coding:utf-8 -*-


class _CONST:
    def __setattr__(self, *_):
        raise SyntaxError('Trying to change a constant value')

    # mysql
    db_host = "127.0.0.1"
    db_port = 3306
    db_user = "demo"
    db_password = "demo"
    db_name = "demo"

    # redis
    rd_host = "192.168.91.162"
    rd_port = 6379
    rd_base = 2
    rd_user = "demo"
    rd_password = "demo"

    # mongodb
    mg_host = "127.0.0.1"
    mg_port = 27017
    mg_user = ""
    mg_password = ""


CONST = _CONST()